package com.ziq.zcamp.bean.merchant

import com.ziq.zcamp.bean.product.RefundRule
import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class MerchantOrderDetail : ProguardKeep, Serializable {
    var orderid :String? = null
    var commodity_id :Long? = null
    var url :String? = null//商品头图
    var commodity_name :String? = null//商品名
    var commodity_price :Long? = null//商品单价,单位：分
    var commodity_num :Long? = null//购买数量
    var date_time :String? = null//出行日期
    var discounted_money :Long? = null//优惠金额，单位：分
    var money :Long? = null//订单实付金额,单位：分
    var amount :Long? = null//订单总金额，单位：分

    var uid :Int? = null
    var name :String? = null//联系方式-姓名
    var phone :String? = null//联系方式-手机号码
    var comment :String? = null//备注
    var create_order_time :Long? = null
    var status_details : StatusDetails? = null
    //3.17.00 身份证信息
    var id_card_infos : String ?= null


    //3.20.00
    var coupon_discounted_money :Long? = null//商家券优惠金额，单位：分
    var ticket_discounted_money :Long? = null//平台券优惠金额，单位：分
    var merchant_received_money :Long? = null//商家实收金额，单位：分

    class StatusDetails : ProguardKeep, Serializable {
        var status :Int? = null//订单状态：订单状态：0待支付,1待接单,2待核销，3已完成，4已取消（用户未支付）,5已退款
        var remain_time :Long? = null
        var pay_order_time :Long? = null// 付款时间戳
        var rcv_order_time :Long? = null// 接单时间戳
        var finish_order_time :Long? = null// 完成时间戳
        var cancel_type :Int? = null//取消类型：1用户主动取消订单，2用户超时未支付
        var cancel_order_time :Long? = null// 取消订单时间戳
        var finish_refund_time :Long? = null//退款成功/退款失败时间
        var is_refund :Int? = null//退款状态,0未退款,1已退款成功，2退款失败
        var refund_rule : List<RefundRule>? = null //退款规则
        var refund_type : Int? = null //退款类型，
        // 1用户主动取消订单，
        // 2用户超时未支付，订单自动取消，
        // 3商家已接单，用户申请退款，
        // 4商家已接单，主动发起退款，
        // 5商家拒绝接单，自动发起退款，
        // 6商家超时未接单，自动发起退款，
        // 7商家未接单，用户取消订单，系统发起退款
        var is_night_order : Boolean? = null //是否为夜间订单

        var refund_money : Int? = null //用户退款金额
        //3.20.00
        var return_subsidy_amount : Int? = null //平台补差回退金额
        var refund_all_money : Int? = null //退款总金额
    }
}